package com.niit.entity;

import java.util.Date;

public class Orders3 {
    private int id;
    private String order_no;
    private int user_id;
    private double amount;
    private String status;
    private Date create_time;
    // 加入关联关系实体类
    private Users users;

    public Users getUsers() {
        return users;
    }

    public void setUsers(Users users) {
        this.users = users;
    }



    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getOrder_no() {
        return order_no;
    }

    public void setOrder_no(String order_no) {
        this.order_no = order_no;
    }

    public int getUser_id() {
        return user_id;
    }

    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    public double getAmount() {
        return amount;
    }

    public void setAmount(double amount) {
        this.amount = amount;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    @Override
    public String toString() {
        return "Orders{" +
                "id=" + id +
                ", order_no='" + order_no + '\'' +
                ", user_id=" + user_id +
                ", amount=" + amount +
                ", status='" + status + '\'' +
                ", create_time=" + create_time +
                ", users=" + users +
                '}';
    }
}
